// 运行时配置

// 全局初始化数据配置，用于 Layout 用户信息和权限初始化
// 更多信息见文档：https://umijs.org/docs/api/runtime-config#getinitialstate
// export async function getInitialState(): Promise<{ name: string }> {
//   return { name: '@umijs/max' };
// }
import {
  BasicLayoutProps,
  Settings as LayoutSettings,
} from '@ant-design/pro-layout';
export const layout = ({
  initialState,
}: {
  initialState: { settings?: LayoutSettings; currentUser?: any };
}): BasicLayoutProps => {
  return {
    logo: '/img/favicon.png',
    title: '锐查查',
    layout: 'mix',
    // siderWidth: 208,
    primaryColor: '#0365FE',

    // menu: {
    //   locale: false,
    //   defaultOpenAll: true,
    //   ignoreFlatMenu: true,
    //   // type: 'group',
    // },
  };
};
